Attempt to solve bug #17497 by minimizing cursor motion during TTY menu updates.
authorEli Zaretskii <eliz@gnu.org>
Wed, 4 Jun 2014 09:16:46 +0000 (12:16 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 4 Jun 2014 09:16:46 +0000 (12:16 +0300)
commitcbbe28f663b430af9bf8f20f43f2a27639accfe9
tree2dd0f4deed7b15bba1c4f81f69a321353c524896
parentdeee5c92cf7303f7a3f8f4dd89f61b50b74ba013
Attempt to solve bug #17497 by minimizing cursor motion during TTY menu updates.

 src/term.c (tty_menu_display): Don't position cursor here.  Instead,
 pass the cursor coordinates to update_frame_with_menu.
 (tty_menu_activate): Send the hide cursor command only once in an
 iteration through the outer 'while' loop.
 src/dispnew.c (update_frame_1): Accept an additional argument
 SET_CURSOR_P, and position the cursor at the end of the frame
 update only if that argument is non-zero.  All callers changed to
 provide the additional argument as non-zero, except for
 update_frame_with_menu.
 (update_frame_with_menu): Accept 2 additional arguments ROW and
 COL; if they are non-negative, instruct update_frame_1 not to
 position the cursor, and instead position it according to ROW and
 COL.
 src/dispextern.h (update_frame_with_menu): Update prototype.
src/ChangeLog
src/dispextern.h
src/dispnew.c
src/term.c